#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/13 10:26
# @Author  : wanghaoran
# @File    : base.py

import yaml
with open("configs/config.yaml", "r", encoding="utf-8") as f:
    all_paras = yaml.safe_load(f)

django_paras = all_paras["django"]
pipline_paras = all_paras["pipline"]
database_paras = all_paras["database"]

host = django_paras["django_service"]["host"]
port = django_paras["nginx"]["port"]

django_port = django_paras["django_service"]["port"]
workers = django_paras["django_service"]["workers"]
backlog = django_paras["django_service"]["backlog"]
max_requests = django_paras["django_service"]["max_requests"]


